package ccnGame;

import java.sql.Timestamp;

public class Message {
	public static final int GAME_MESSAGE = 1;
	public static final int SYSTEM_MESSAGE = 2;
	public static final int LOGIN_MESSAGE = 3;
	public static final int SHUTDOWN_MESSAGE = 4;
	
	
	private String _usrName;
	private Timestamp _time;
	private String _message;
	private int _state;
	
	public Message(String usr, String msg, Timestamp time, int state){
		_usrName = usr;
		_message = msg;
		_time = time;
		_state = state;
	}
	
	public String getName(){
		return _usrName;
	}
	
	public String getMsg(){
		return _message;
	}
	
	public Timestamp getTime(){
		return _time;
	}
	
	public int getState(){
		return _state;
	}
}
